<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>信息修改</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="__PUBLIC__/js/rem.js"></script> 
    <script src="__PUBLIC__/js/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/upload.js"></script>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/base.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/page.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/all.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/mui.min.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/loaders.min.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/loading.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/slick/slick.css"/>
    <style type="text/css">
      .selectfiles:hover{background-image:url("__PUBLIC__/img/fileupload01.png")}
      .selectfiles{background-image:url("__PUBLIC__/img/fileupload.png");margin-right:5px;background-size:100% 100%;background-position:center;background-repeat:no-repeat;height:129px;width:129px;float:left;background-color:transparent!important;margin:0 0 0 5px!important;border:0;cursor:pointer}
    </style>
	<script type="text/javascript">
		$(window).load(function(){
			$(".loading").addClass("loader-chanage")
			$(".loading").fadeOut(300)
		})
	</script>
</head>
<!--loading页开始-->
<div class="loading">
	<div class="loader">
        <div class="loader-inner pacman">
          <div></div>
          <div></div>
          <div></div>
          <div></div>
          <div></div>
        </div>
	</div>
</div>
<!--loading页结束-->
	<body>
		<div class="center-header clearfloat" id="header">
			<a href="__URL__/seigOut" class="fr shezhi">退出</a>
			<div class="top fl clearfloat box-s">
				<a href="#">
					<div class="tu fl">
						<span></span>
						<img src="<?php echo $res[0]['head_pic']; ?>"/>
					</div>
					<p class="tit fl"><?php echo $res[0]['name']; ?></p>
					<p class="tit fl">您的当前积分【<?php echo $res[0]['shop_points']; ?>】</p>
				</a>
			</div>
			<div class="bottom clearfloat">
				<ul>
					<li>
						<a href="__URL__/buyNum" class="clearfloat">
							<p><?php echo $count; ?></p>
							<p>积分明细</p>
						</a>
					</li>
					<li>
						<a href="#" class="clearfloat">
							<p><?php echo $res[0]['use_points']; ?></p>
							<p>可提现积分</p>
						</a>
					</li>
					<li>
						<a href="#" class="clearfloat">
							<p>我要</p>
							<p>推广</p>
						</a>
					</li>
					<li>
						<a href="__URL__/tMoney" class="clearfloat">
							<p>我要</p>
							<p>提现</p>
						</a>
					</li>
				</ul>
			</div>
		</div>
		
		<div class="rent clearfloat" id="main">
			<div class="top clearfloat">
				<ul>
					<li>
						<a href="__URL__/buy">购买积分</a>
					</li>
					<li>
						<a href="#">赠送积分</a>
					</li>
					<li>
						<a href="__URL__/goods">商品上新</a>
					</li>
					<li class="cur">
						<a href="__URL__/change">信息修改</a>
					</li>
				</ul>
			</div>
			
			<div class="register clearfloat" id="main">
				<form action="__URL__/changed" method="post" class="cmxform" id="signupForm" enctype="multipart/form-data">
					<input type="hidden" name="id" id="contacts" value="<?php echo $res[0]['shop_id']; ?>"/>
					<ul>
						<li class="clearfloat">
							<p class="tit fl">联系人</p>
							<input type="text" name="contacts" id="contacts" value="<?php echo $res[0]['contacts']; ?>" class="shuru fl" placeholder="请输入店铺联系人"/>
						</li>
 						<li class="clearfloat">
							<p class="tit fl">旧密码</p>
							<input type="password" name="old_pwd" id="old_pwd" value="" class="shuru fl" placeholder="请设置密码" minlength="6"/>
						</li>
						<li class="clearfloat">
							<p class="tit fl">新密码</p>
							<input type="password" name="new_pwd" id="new_pwd" value="" class="shuru fl" placeholder="请设置密码" minlength="6"/>
						</li>
						<li class="clearfloat">
							<p class="tit fl">地区</p>
							
							<select class="shuru fl" name="area" size="1" id="contacts">
								
								 
									<option value="<?php echo $res[0]['address']; ?>" >
									<?php echo $res[0]['address']; ?></option>
								
							</select>							
<!-- 							<select class="shuru fl" name="area" size="1" id="contacts">
								<option value="">请选择</option>
								<volist name="areaRes" id="vo" >
									<option value="{$vo.name}" >
									{$vo.name}</option>
								</volist>
							</select> -->
						</li>
						<li class="clearfloat">
							<p class="tit fl">类别</p>
							<select class="shuru fl" name="type" size="1" id="type">
								<option value="">请选择</option>
								<volist name="classRes" id="vo" >
									<option value="{$vo.name}">
									{$vo.name}</option>
								</volist>
							</select>
						</li>
						<li class="clearfloat">
							<p class="tit fl">地址</p>
							<input type="text" name="address" id="address" value="<?php echo $res[0]['address']; ?>" class="shuru fl" placeholder="请输入公司地址"/>
						</li>
						<li class="clearfloat">
							<p class="tit fl">简介</p>
							<input type="area" name="synopsis" id="synopsis" value="<?php echo $res[0]['synopsis']; ?>" class="shuru fl" placeholder="请输入公司简介"/>
						</li>
						<li class="clearfloat">
					
							<p class="tit fl"> 图片1</p>
							<p id="preview1" style="float:left;margin-left:10px;">
								<img id="imghead1" src="__PUBLIC__/Uploads/<?php echo $res[0]['photo1']; ?>" style="margin-top: 0px;" width="100" height="100">
							</p>     
					        <input type="file" id="photo1" name="photo1"  style="display: none;" onchange="previewImage(this, 'preview1', 'imghead1')" /> 
							<input type="hidden" name="o_photo1" value="<?php echo $res[0]['photo1']; ?>"/>
					        <label  class="selectfiles" for="photo1" style="position: relative; z-index: 1;"></label> 
						</li>
						<li class="clearfloat">
							<p class="tit fl"> 图片2</p>
							<p id="preview2" style="float:left;margin-left:10px;"> 
								<img id="imghead2" src="__PUBLIC__/Uploads/<?php echo $res[0]['photo2']; ?>" style="margin-top: 0px;" width="100" height="100">
							</p>     
					        <input type="file" id="photo2" name="photo2"  style="display: none;" onchange="previewImage(this, 'preview2', 'imghead2')" />  
					        <input type="hidden" name="o_photo2" value="<?php echo $res[0]['photo2']; ?>"/>
							<label  class="selectfiles" for="photo2" style="position: relative; z-index: 1;"></label>
						</li>
						<li class="clearfloat">
							<p class="tit fl">真实姓名</p>
							<input type="text" name="realname" id="realname" value="<?php echo $res[0]['realname']; ?>" <?php if($res[0]['realname'] != ""){ ?>readonly="readonly"<?php } ?> class="shuru fl" placeholder="请输入真实姓名"/>
						</li>							
						<li class="clearfloat">
							<p class="tit fl">身份证号</p>
							<input type="text" name="idcard" id="idcard" value="<?php echo $res[0]['idcard']; ?>" <?php if($res[0]['idcard'] != ""){ ?>readonly="readonly"<?php } ?> class="shuru fl" placeholder="请输入身份证号"/>
						</li>						
						<li class="clearfloat">
							<p class="tit fl">银行卡号</p>
							<input type="text" name="card" id="card" value="<?php echo $res[0]['card']; ?>" <?php if($res[0]['card'] != ""){ ?>readonly="readonly"<?php } ?> class="shuru fl" placeholder="请输入银行卡号"/>
						</li>
						<li class="clearfloat">
							<p class="tit fl">开户行</p>
							<input type="area" name="banktype" id="banktype" value="<?php echo $res[0]['banktype']; ?>" class="shuru fl" placeholder="请输入银行卡类型"/>
						</li>
						
						<li class="clearfloat">
							<p class="tit fl">银行卡预留电话</p>
							<input type="area" name="openbank" id="openbank" value="<?php echo $res[0]['openbank']; ?>" <?php if($res[0]['openbank'] != ""){ ?>readonly="readonly"<?php } ?> class="shuru fl" placeholder="请输入银行卡预留电话"/>
						</li>						
					</ul>
					<input type="submit" value="保存" class="pay-btn clearfloat">
				</form>
			</div>
		</div>
	</body>

	
	
	
	<script type="text/javascript" src="__PUBLIC__/js/jquery-1.8.3.min.js" ></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery.SuperSlide.2.1.js" ></script>
	<script type="text/javascript" src="__PUBLIC__/slick/slick.min.js" ></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery.leanModal.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/tchuang.js" ></script>
	<script type="text/javascript" src="__PUBLIC__/js/hmt.js" ></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery.uploadView.js" ></script>
	
<script>
$(function(){
	$(".js_upFile").uploadView({
		uploadBox: '.js_uploadBox',//设置上传框容器
		showBox : '.js_showBox',//设置显示预览图片的容器
		width : 100, //预览图片的宽度，单位px
		height : 100, //预览图片的高度，单位px
		allowType: ["gif", "jpeg", "jpg", "bmp", "png"], //允许上传图片的类型
		maxSize :2, //允许上传图片的最大尺寸，单位M
		success:function(e){
		$(".js_uploadText").text('更改');
		alert('图片上传成功');
		}
	});
})

</script>		
	
	
</html>
